if (typeof window.addEventListener != 'undefined')
{
    window.addEventListener("resize", setup$WidgetId$Blocks, false);
    window.addEventListener("load", setup$WidgetId$Blocks, false);
}
else
    setup$WidgetId$Blocks();

function setup$WidgetId$Blocks()
{
    var theBlock = document.getElementById('$WidgetId$');
    calcSize(theBlock, $NumCols$, $NumRows$, $NumHeaderRows$, 1, 0, $WeekView$);
}
